package shop.ynubeggar.service;

import shop.ynubeggar.model.dataobject.ProductDO;
import com.baomidou.mybatisplus.extension.service.IService;
import shop.ynubeggar.model.valueobject.ProductVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LiuQ
 * @since 2022-09-21
 */
public interface ProductService extends IService<ProductDO> {

    Map<String, Object> findPage(int page, int size);

    ProductVO findDetail(long productID);

    /**
     * 根据id列表批量查询商品
     *
     * @param productIdList
     * @return
     */
    Map<Long, ProductVO> findProductsBathById(List<Long> productIdList);
}
